﻿using System;
using System.Data.Linq.Mapping;

namespace NewsPortal.DataContracts
{
    [Table(Name = "dbo.Users")]
    public class Users
    {
        [Column(Name = "Id", DbType = "UniqueIdentifier NOT NULL", IsPrimaryKey = true)]
        public Guid Id { get; set; }

        [Column(Name = "Login", DbType = "NVarChar(MAX) NOT NULL", CanBeNull = false)]
        public string Login { get; set; }

        [Column(Name = "Password", DbType = "NVarChar(MAX) NOT NULL", CanBeNull = false)]
        public string Password { get; set; }
    }
}
